$(document).ready(function(){
	var i = 0;
	$("#update").click(function(){
		var width=$(document).width();
		var height=$(document).height();
		$('#opacity').css('width',width+'px');
		$('#opacity').css('height',height+'px');
		$('#opacity').css('display','block');
		$('#opacity').css('opacity','0.5');
		$('#image_loadder').css('display','block');
		$('#image_loadder').css("left",($(window).width()-100)/2+"px");
		$('#image_loadder').css("top",($(window).height()-100)/2+"px");

		setTimeout(function(){
			window.location = location.href;
		},20000);
		
		$.get(
				'/update-domain',
				{name:domain},
				function(data)
				{
					var re=/#.[0-9a-z]+/i;
					window.location = location.href.replace(re,"");
				}
		);
		
	});
	$(".click_view").click(function(){
         $(".view_tag").slideDown();
         $(this).css("display","none");
	});
	$(".click_image").click(function(){
         $(".view_image").slideDown();
         $(this).css("display","none");
 	});
 	$(".click_flash").click(function(){
         $(".view_flash").slideDown();
         $(this).css("display","none");
 	});
});